package com.fellong.flash.flar.util
{
	import org.libspark.flartoolkit.core.param.FLARParam;
	
	import flash.utils.ByteArray;

	public class FLARParamFix extends FLARParam
	{
		public function FLARParamFix( _width:int = 320, _height:int = 240 )
		{
			super();
			var value:String = "00000280000001e04085e79c9c75d24700000000000000004073c80000000000000000000000000000000000000000004086b0c0e24f8e96406e3000000000000000000000000000000000000000000000000000000000003ff000000000000000000000000000004073e800000000004070780000000000403a3333333333333ff034402e71210c";
			var len:uint = value.length/2;
			var ba:ByteArray = new ByteArray();
			for (var i:uint = 0; i < len; i++) {
				var c:String = value.charAt(i*2) + value.charAt(i*2 + 1);
				ba.writeByte(parseInt(c, 16));
			}
			ba.position = 0;
			this.loadARParam(ba);
			this.changeScreenSize(_width, _height);
		}
	}
}